<@master template="master/master-loan" title="内审信息编辑总界面">

<@css href="/easyui/themes/default/easyui.css"/>
<@css href="/easyui/themes/icon.css"/>
<@js src="/easyui/jquery.easyui.min.js"/><@jsRender/>

	<div class="detailsBox">
	 <div class="openBox">
	 <!-- 贷款要素 begin -->
	 <h3><i class="jtIco"></i>贷款要素
     <!-- 	 
      	 <@permission permissionName="UpdateInternalInfo">
      	 	<a class="action-ajax-btn fr edit btn_blue" href="/rback/l_i_commonLoan_update?loanapplyNo=${loanapplyNo}" > 编辑 </a>
      	 </@permission>
     -->
     </h3>
	 <div class="action-ajax-load" data-url="/rback/l_i_common?loanapplyNo=${loanapply.loanapplyNo}"></div>
	 <!-- 贷款要素  end -->
     </div>
    </div>
    
	<div class="detailsBox">
	 <div class="openBox">
       <h3><i class="jtIco"></i>借款人基本信息
       <@permission permissionName="UpdateInternalInfo">
       <#if loanapply.wfType == "ZF">
       		<a class="action-ajax-btn fr edit btn_blue" href="/customerInfo/rest/query-update?loanUserId=${loanid}" > 编辑 </a>
       </#if>
       </@permission>
       </h3>
	   <div class="detailTab">
            <div id="oa_tot_assets"  class="action-ajax-load" data-url="<@url value='/customerInfo/rest/query-view?loanUserId=${loanid}' />" data-ajax-wait-img="<@cdn value='img.wait'/>" ></div>
	   </div> 
	 </div>
    </div>
    
    <#if spousemainId! >
    <div class="detailsBox">
	    <div class="openBox">
	       <h3><i class="jtIco"></i>借款人配偶基本信息
	       <@permission permissionName="UpdateInternalInfo">
	       <#if loanapply.wfType == "ZF">
	       		<a class="action-ajax-btn fr edit btn_blue" href="/customerInfo/rest/query-spouse-update?loanUserId=${spousemainId}" > 编辑 </a>
	       </#if>
	       </@permission>
	       </h3>
		   <div class="detailTab">
	            <div id="oa_tot_assets"  class="action-ajax-load" data-url="<@url value='/customerInfo/rest/query-spouse-view?loanUserId=${spousemainId}' />" data-ajax-wait-img="<@cdn value='img.wait'/>" ></div>
		   </div> 
	   </div> 
    </div>
    </#if>
    
    
<div class="detailsBox pb80">

<!-- 1107之前的旧内审数据  start-->
<#if loanapply.isNewNs!="Y">
	
	 <!-- 资产信息start -->
		<div class="action-ajax-load" data-url="<@url value='/assetView/view?loanapplyNo=${loanapply.loanapplyNo}'/>"></div>
	 <!-- 资产信息end -->
	
	 <!-- 门店信息start -->
	 <div class="openBox">
        <h3>
            <i class="jtIco1"></i>门店信息
        <@permission permissionName="UpdateInternalInfo">
          <#if loanapply.wfType == "ZF">
          <a class="action-ajax-btn fr edit btn_blue"
               href="/customer/shop/rest/addPage?loanapplyNo=${loanapply.loanapplyNo}" target="_self">新增</a>
          </#if>
        </@permission>
        </h3>
        <div class="detailTab">
            <div class="action-ajax-load" data-url="<@url value='/customer/shop/list?loanapplyNo=${loanapply.loanapplyNo}'/>" data-ajax-wait-img="<@cdn value='img.wait'/>" >
        </div>
        </div>
     </div>
     <!-- 门店信息end -->
     
</#if>
<!-- 1107之前的旧内审数据  end-->


<!-- 1107新增内审数据  start-->
<#if loanapply.isNewNs=="Y">
	
		<div class="detailsBox pb80">
	      <div class="openBox">
	        <h3><i class="jtIco"></i>紧急联系人
	        <@permission permissionName="UpdateInternalInfo">
		    <#if loanapply.wfType == "ZF">
		        <a class="action-ajax-btn fr edit btn_blue" href="/contactsInfo/update-index?loanapplyNo=${loanapply.loanapplyNo}" target="_self">新增</a> 
		    </#if>
	        </@permission>
	        </h3>
	        <div class="detailTab">
	            <div id="contacts-list" class="action-ajax-load" data-url="/contactsInfo/contacts-list?loanapplyNo=${loanapply.loanapplyNo}"
	                 data-ajax-wait-img="<@cdn value='img.wait'/>"></div>
	        </div>
	    </div>
		
		<div class="openBox">	
		   <h3><i class="jtIco"></i>夫妻双方资产负债情况
		   <@permission permissionName="UpdateInternalInfo">
			   <#if loanapply.wfType == "ZF">
			   <a class="action-ajax-btn fr edit btn_blue" href="/tot_assets/tot_assets_op?loanapplyId=${loanapply.loanapplyNo}" > 编辑 </a>
		 		</#if>
		   </@permission>
		   </h3>
		   <div class="detailTab">
	             <div id="oa_tot_assets"  class="action-ajax-load" data-url="<@url value='/tot_assets/tot_assets_show?loanapplyId=${loanapply.loanapplyNo}' />" data-ajax-wait-img="<@cdn value='img.wait'/>" ></div>
		   </div> 
	   	</div>
		
		<div class="openBox">	
		   <h3><i class="jtIco"></i>夫妻双方房产信息
		   <@permission permissionName="UpdateInternalInfo">
			   <#if loanapply.wfType == "ZF">
			   <a class="action-ajax-btn fr edit btn_blue" href="/house/house_op?loanapplyId=${loanapply.loanapplyNo}" target="_self">新增</a> 
			   </#if>
		   </@permission>
		   </h3>
		   <div class="detailTab">
	             <div id="o2o_house"  class="action-ajax-load" data-url="/house/house_list?loanapplyId=${loanapply.loanapplyNo}" data-ajax-wait-img="<@cdn value='img.wait'/>" ></div>
		   </div> 
	  	</div> 
		
		<div class="openBox">	
		   <h3><i class="jtIco"></i> 夫妻双方车产信息
		   <@permission permissionName="UpdateInternalInfo">
			   <#if loanapply.wfType == "ZF">
			   <a class="action-ajax-btn fr edit btn_blue" href="/car/car_op?loanapplyId=${loanapply.loanapplyNo}" target="_self">新增</a> 
		   		</#if>
		   </@permission>
		   </h3>
		   <div class="detailTab">
	             <div id="o2o_car"  class="action-ajax-load" data-url="/car/car_list?loanapplyId=${loanapply.loanapplyNo}" data-ajax-wait-img="<@cdn value='img.wait'/>" ></div>
		   </div> 
	  	</div>  
	  	
	  	<div class="openBox">	
		   <h3><i class="jtIco"></i>夫妻双方其他资产信息
		   <@permission permissionName="UpdateInternalInfo">
			   <#if loanapply.wfType == "ZF">
			   <a class="action-ajax-btn fr edit btn_blue" href="/other_assets/other_assets_op?loanapplyId=${loanapply.loanapplyNo}" target="_self">新增</a> 
		   		</#if>
		   </@permission>
		   </h3>
		   <div class="detailTab">
	             <div id="o2o_other_assets"  class="action-ajax-load" data-url="/other_assets/other_assets_list?loanapplyId=${loanapply.loanapplyNo}" data-ajax-wait-img="<@cdn value='img.wait'/>" ></div>
		   </div> 
	  	</div>
	  	
	<!-- 经营主体信息 start-->
    <div class="detailsBox">
	 <div class="openBox">
       <h3><i class="jtIco"></i>经营主体信息
       <@permission permissionName="UpdateInternalInfo">
       	<#if loanapply.wfType == "ZF">
       		<a class="action-ajax-btn fr edit btn_blue" href="/mainShopInfoRest/updatePage?loanapplyNo=${loanapply.loanapplyNo}" > 编辑 </a>
       	</#if>
       </@permission>
       </h3>
	   <div class="detailTab">
            <div id="oa_tot_assets"  class="action-ajax-load" data-url="<@url value='/mainShopInfoView/query_view?loanapplyNo=${loanapply.loanapplyNo}' />" data-ajax-wait-img="<@cdn value='img.wait'/>" ></div>
	   </div> 
	 </div>
    </div>
    <!-- 经营主体信息 end-->
    
    <!-- 经营历史 start-->
    <div class="openBox">
        <h3>
            <i class="jtIco"></i>经营历史
        <@permission permissionName="UpdateInternalInfo">
        <#if loanapply.wfType == "ZF">
            <a class="action-ajax-btn fr edit btn_blue" href="/management/td/rest/addPage?loanapplyNo=${loanapply.loanapplyNo}" target="_self">新增</a>
        </#if>
        </@permission>
        </h3>
        <div class="action-ajax-load-show" data-url="<@url value='/management/td/list?loanapplyNo=${loanapply.loanapplyNo}' />" data-ajax-wait-img="<@cdn value='img.wait'/>">
        <div class="detailTab">
            <div d="management" class="action-ajax-load" data-url="<@url value='/management/td/list?loanapplyNo=${loanapply.loanapplyNo}' />" data-ajax-wait-img="<@cdn value='img.wait'/>" >
            </div>
        </div>
        </div>
     </div>
     <!-- 经营历史 end-->
     
     <!-- 近六个月营业额情况 start-->
     <div class="detailsBox">
	 	<div class="openBox">
       	<h3><i class="jtIco"></i>近六个月营业额情况
       	<@permission permissionName="UpdateInternalInfo">
       		<#if loanapply.wfType == "ZF">
       			<a class="action-ajax-btn fr edit btn_blue" href="/mainMonthInfoRest/updatePage?loanapplyNo=${loanapply.loanapplyNo}" > 编辑 </a>
       		</#if>
       	</@permission>
       	</h3>
	   	<div class="detailTab">
            <div id="oa_tot_assets"  class="action-ajax-load" data-url="<@url value='/mainMonthInfoView/query_view?loanapplyNo=${loanapply.loanapplyNo}' />" data-ajax-wait-img="<@cdn value='img.wait'/>" ></div>
	   	</div> 
	 	</div>
     </div>
     <!-- 近六个月营业额情况 end-->
    
     <!-- 经营状况 start-->
     <div class="openBox">	
	   <h3><i class="jtIco"></i>经营状况
	   <@permission permissionName="UpdateInternalInfo">
	   <#if loanapply.wfType == "ZF">
	   		<a class="action-ajax-btn fr edit btn_blue" href="/managementInfo/update-index?loanapplyNo=${loanapply.loanapplyNo}"> 编辑 </a>
	   </#if>
	   </@permission>
	   </h3>
	   <div class="detailTab">
            <div id="oa_result1"  class="action-ajax-load" data-url="<@url value='/managementInfoView/view?loanapplyNo=${loanapply.loanapplyNo}'/>" data-ajax-wait-img="<@cdn value='img.wait'/>" ></div>
	   </div> 
     </div>
     <!-- 经营状况 end--> 
    
    <!-- 新门店信息start -->
	<div class="openBox">
        <h3>
            <i class="jtIco"></i>(新)门店信息
        <@permission permissionName="UpdateInternalInfo">
        <#if loanapply.wfType == "ZF">
            <a class="action-ajax-btn fr edit btn_blue"
               href="/customer/shop/rest/addPagenew?loanapplyNo=${loanapply.loanapplyNo}" target="_self">新增</a>
        </#if>
        </@permission>
        </h3>
        <div class="detailTab">
            <div class="action-ajax-load" data-url="<@url value='/customer/shop/listnew?loanapplyNo=${loanapply.loanapplyNo}'/>" data-ajax-wait-img="<@cdn value='img.wait'/>" >
        </div>
        </div>
    </div>
	<!-- 新门店信息end -->
    
    <!-- 仓库信息 start-->
    <div class="detailsBox">
	 <div class="openBox">
       <h3><i class="jtIco"></i>仓库信息
       <@permission permissionName="UpdateInternalInfo">
       <#if loanapply.wfType == "ZF">
       		<a class="action-ajax-btn fr edit btn_blue" href="/mainStoreInfoRest/addPage?loanapplyNo=${loanapply.loanapplyNo}" > 新增 </a>
       </#if>
       </@permission>
       </h3>
	   <div class="detailTab">
            <div id="oa_tot_assets"  class="action-ajax-load" data-url="<@url value='/mainStoreInfoView/list?loanapplyNo=${loanapply.loanapplyNo}' />" data-ajax-wait-img="<@cdn value='img.wait'/>" ></div>
	   </div> 
	 </div>
    </div>
    <!-- 仓库信息 end-->
    
    <!-- 贷款类型扩展模块_经营补充信息 start,type=可编辑;type=VIEW即只读不可编辑-->
    <!-- 蔬果贷、商超贷经营信息start -->
    <#if loanapply.loanType=='SG'>
    	<div class="action-ajax-load" data-url="<@url value='/rmongo/gs_info_lno?loanapplyNo=${loanapply.loanapplyNo}&type='/>" data-ajax-wait-img="<@cdn value='img.wait'/>" ></div>
    </#if>
    <#if loanapply.loanType=='SC'>
    	<div class="action-ajax-load" data-url="<@url value='/rmongo/sc_info_lno?loanapplyNo=${loanapply.loanapplyNo}&type='/>" data-ajax-wait-img="<@cdn value='img.wait'/>" ></div>
    </#if>
    <#if loanapply.loanType=='BP' || loanapply.loanType=='BP_JX' || loanapply.loanType=='BK'>
    	<div class="action-ajax-load" data-url="<@url value='/rmongo/bk_info_view?loanapplyNo=${loanapply.loanapplyNo}&type='/>" data-ajax-wait-img="<@cdn value='img.wait'/>" ></div>
    </#if>
    <!-- 蔬果贷、商超贷经营信息end -->
    <!-- 贷款类型扩展模块_经营补充信息 end-->
    
    <!-- 暗访内容 start-->
    <div class="detailsBox">
	 <div class="openBox">
       <h3><i class="jtIco"></i>暗访内容
       <@permission permissionName="UpdateInternalInfo">
       	<#if loanapply.wfType == "ZF">
       		<a class="action-ajax-btn fr edit btn_blue" href="/mainPsInfoRest/updatePage?loanapplyNo=${loanapply.loanapplyNo}" > 编辑 </a>
       	</#if>
       </@permission>
       </h3>
	   <div class="detailTab">
            <div id="oa_tot_assets"  class="action-ajax-load" data-url="<@url value='/mainPsInfoView/query_view?loanapplyNo=${loanapply.loanapplyNo}' />" data-ajax-wait-img="<@cdn value='img.wait'/>" ></div>
	   </div> 
	 </div>
    </div>
    <!-- 暗访内容 end-->
    
</#if>
<!-- 1107新增内审数据  end-->

  <!-- 企业征信 -->
    <div class="action-ajax-load"
			data-url="<@url value='/enterpriseZx/zxbgTDView?loanapplyNo=${loanapply.loanapplyNo}'/>"></div>
    
    <div class="openBox">
        <h3>
            <i class="jtIco"></i>贷款信息
        </h3>
        <div class="action-ajax-load" data-url="<@url value='/nsEditDetail/ns_edit_view?loanapplyNo=${loanapply.loanapplyNo}'/>" data-ajax-wait-img="<@cdn value='img.wait'/>" ></div>
    </div>
  
			
</div>
</@master>

